<!--{if $payform.online}-->

<h3>{$lang.connecting_pay_gateway}</h3>
<form action="{$payform.gateway}" id="payform" method="{$payform.method}" style="display:none">
	<!-- {foreach from=$payform.params item=value key=_k} -->
	<input type="hidden" name="{$_k}" value="{$value}" />
	<!-- {/foreach} -->
</form>
<script type="text/javascript">
      document.getElementById('payform').submit();
</script> 

{else}

{include file=header.html}

<style>
.payment-desc h3{ font-weight:normal; font-size:16px; line-height:22px;}
#pay_message_form table{border:1px solid #eee;background:#fff;margin-top:10px;padding:10px;}
#pay_message_form td textarea{width:97%;border:1px #eee solid;padding:5px;margin:5px 0; border-radius:4px; height:50px;}
</style>

<div id="page-cashier">
	<div class="page-main">
		<div class="payment-desc margin10">
			<h3>{$lang.payment_desc}</h3>
		</div>
		<form id="pay_message_form" action="{$real_site_url}/index.php?app=cashier&act=offline_pay&order_id={$order.order_id}" method="POST">
			<table class="table_form" width="100%" border="0" cellspacing="0">
				<tr>
					<td valign="top"> {$lang.input_pay_message} <span class="gray">({$lang.input_pay_message_notice})</span></td>
				</tr>
				<tr>
					<td><textarea name="pay_message">{$order.pay_message|escape}</textarea></td>
				</tr>
				
			</table>
            <div class="margin10"><a href="javascript:;" onclick="$('#pay_message_form').submit();" class="btn-alipay">{$lang.submit}</a></div>
		</form>
	</div>
</div>

{include file=footer.html} 
<!--{/if}--> 